package com.cloud.api.myenum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum AvatarTypeEnum implements IEnum<Integer> {

    MALE(1, "男性"),
    FEMALE(2, "女性"),
    VEHICLE(3, "车"),
    VIEW(4, "风景");

    @EnumValue
    private Integer value;

    @JsonValue
    private String desc;

    AvatarTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
